body {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 包括边框和内边距在内计算元素的总宽度和高度 */
    overflow: hidden;
}

@font-face {
    font-family: electronicFont;
    src: url("../font/DS-DIGI-1.ttf")
}

.box {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    /* 设置浅灰色边框 */
    border-radius: 10px;
    /* 圆角边框 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header {
    position: fixed;
    top: 0;
    z-index: 3; /* 确保头部在最顶层 */
    width: 100%;
    height: 6%;
    display: flex;
    margin-bottom: 30px;
    background: url('../img/header_bg.png');
    background-size: cover;
}

.header-left {
    background: linear-gradient(to right, rgba(8, 25, 40, 0.9), rgba(255, 255, 255, 0.1));
    width: 28%;
}

.header-right {
    position: absolute;
    right: 0;
    background: linear-gradient(to left, rgba(8, 25, 40, 0.9), rgba(255, 255, 255, 0.1));
    width: 28%;
    height: 100%;
}

.header-time-text {
    height: 15px;
    margin: 12px;
    padding-right: 10px;
    /*时间字体样式 15:04:22*/
    font-size: 16px;
    font-weight: 700;
    color: rgba(31, 198, 255, 1);
    border-right: 2px solid rgba(19, 82, 128, 1);
}

.header-date-text {
    height: 15px;
    margin: 10px;
    padding-top: 2px;
    padding-right: 10px;
    /*2022-11-25*/
    font-size: 12px;
    font-weight: 400;
    color: rgba(31, 198, 255, 1);
    border-right: 2px solid rgba(19, 82, 128, 1);
    letter-spacing: 1px;
}

.center {
    position: relative; /* 改为相对定位作为其他绝对定位元素的参考 */
    width: 100%;
    height: 100%;
}

/* 地图容器全屏 */
#map_container {
    position: fixed !important;
    top: 0; /* 头部高度 */
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    z-index: 1; /* 确保地图在底层 */
}

/* 左右侧边栏绝对定位并提升层级 */
.center-left, .center-right {
    position: absolute;
    top: 6%; /* 与头部对齐 */
    height: calc(100% - 6%);
    z-index: 2; /* 确保组件在地图之上 */
    pointer-events: none; /* 禁用鼠标事件穿透 */
    margin: 0;
}

.center-left {
    left: 0;
    width: 28%;
    height: 100%;
    background: linear-gradient(to right, rgba(8, 25, 40, 0.9), rgb(255, 255, 255, 0.1));
}

.center-center {
    width: 44%;
    height: 100%;
    background: linear-gradient(to right, rgb(255, 255, 255, 0.1), rgb(255, 255, 255, 0.1));
}

.center-right {
    right: 0;
    width: 28%;
    height: 100%;
    background: linear-gradient(to left, rgba(8, 25, 40, 0.9), rgb(255, 255, 255, 0.1));
}

.component {
    pointer-events: auto; /* 启用组件内部元素的鼠标事件 */
    width: 100%;
}

.component-title {
    background-image: url("../img/component_title2.png");
    width: 430px;
    height: 50px;
    display: flex; /* 启用 Flexbox 布局 */
    align-items: center; /* 垂直居中对齐 */
}

.component-title-text {
    /** 文本 */
    font-size: 18px;
    font-style: oblique;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    margin-left: 40px;
    padding-bottom: 6px;
}

.attackers,
.scouts {
    font-size: 16px;
    font-weight: 500;
    color: rgba(180, 192, 204, 1);
    margin-left: 20px;
    padding: 5px 5px; /* 添加内边距 */
    cursor: pointer; /* 添加鼠标指针样式 */
    background-image: url("../img/plane_unchecked.png"); /* 设置背景图片 */
    background-size: cover; /* 背景图片覆盖 */
    background-repeat: no-repeat; /* 不重复 */
}

.attackers.selected,
.scouts.selected {
    background-image: url("../img/plane_selected.png"); /* 设置背景图片 */
    background-size: cover; /* 背景图片覆盖 */
    background-repeat: no-repeat; /* 不重复 */
}

.component-body {
    width: 425px;
    height: 185px;
}

.gauge-container {
    width: 48%;
    height: 150px;
    display: inline-block;
}

/* 新增饼图容器样式 */
.chart-pie {
    width: 100%;
    height: 200px;
}

/* 接收时间样式 */
.log-time {
    /*2022-11-23 09:37:25*/
    /** 文本 */
    font-size: 15px;
    font-weight: 500;
    color: rgba(31, 198, 255, 1);
}

/* 指令内容样式 */
.log-instruction {
    margin-top: 5px;
    /** 文本 */
    font-size: 14px;
    font-weight: 500;
    color: rgba(245, 245, 245, 1);
}
.component-body {
    width: 425px;
    height: 185px;
}

.component-status-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100px;
}

.jtac-linkStatus-div {
    text-align: center;
    flex: 0 0 20%;
}

.jtac-posStatus-div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10%;
    margin-top: 10px;
}

.jtac-position-div {
    text-align: center;
    margin: 5px 0;
}

.top-text {
    display: block;
    font-size: 38px;
    color: rgb(196, 208, 255);
    font-family: electronicFont;
}

.bottom-text {
    display: block;
    font-size: 15px;
    color: rgb(230, 230, 230);
    letter-spacing: 1px;
}

.route-list {
    padding: 10px;
}

.route-item {
    padding: 2px;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 1px solid rgb(128, 128, 128);
}

.route-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.route-icon {
    font-size: 18px;
    margin-right: 10px;
}

.route-details-time {
    font-size: 16px;
    margin: 4px 0;
    color: rgb(255, 255, 255);
    background: none;
}

.route-details {
    margin-bottom: 10px;
}

.route-name {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 16px;
    color: rgb(255, 255, 255);
    margin-left: 5%;
}

.route-details-state {
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 10%;
    font-size: 16px;
    color: rgb(255, 255, 255);
}

.route-button {
    position: absolute;
    right: 25%;
    width: 60px;
    height: 25px;
    font-size: 16px;
    background-color: rgb(58,190,250);
    color: #ffffff;
    border-radius: 2px;
    border: 1px solid rgb(83, 196, 248);
}

.no-routes {
    color: #ff4646;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/*滚动条整体样式*/
.scroller1::-webkit-scrollbar {
    /*高宽分别对应横竖滚动条的尺寸*/
    width: 5px;
    height: 1px;
}

/*滚动条里面小方块*/
.scroller1::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: rgb(73,120,159);
}

/*滚动条里面轨道*/
.scroller1::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px rgba(32,57,74,0.2);
    border-radius: 10px;
    background: rgba(32,57,74,0.2);
}

.task-list {
    display: grid;
    gap: 15px;
    width: 95%; /* 修改宽度占据整个父容器 */
}

.task-card {
    display: flex;
    width: 95%;
    height: 100px;
    background:linear-gradient(to left,rgba(16,39,55,0.9),rgba(235,235,235, 0.4));;
    border: 1px solid rgba(26,94,198,0.3);
    border-radius: 6px;
    padding: 15px;
    color: #fff;
    align-items: center; /* 垂直居中对齐 */
}

.task-id {
    font-size: 16px;
    color: rgb(245,245,245);
    margin-bottom: 5px;
}

.task-title {
    font-size: 16px;
    color: rgb(245,245,245);
    margin-bottom: 5px;
}

.task-time {
    font-size: 16px;
    color: rgb(245,245,245);
}

.task-content {
    flex: 1; /* 占据剩余空间 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    margin-bottom: 0;
}

.task-preview {
    width: 50%;
    max-width: 50%;
    margin-right: 10px;
}

.preview-image {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #2a6ebd;
    object-fit: cover;
    height: 100px;
}

.no-task {
    text-align: center;
    color: #ff4646;
    padding: 30px;
    font-size: 14px;
}

.task-info {
    width: 50%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}